package com.ruoyi.system.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.utils.uuid.IdUtils;
import com.ruoyi.system.domain.ZftAppMyManager;
import com.ruoyi.system.domain.ZftMyManager;
import com.ruoyi.system.domain.dto.ZftAppMyManagerDTO;
import com.ruoyi.system.service.IZftMyAppManagerService;
import com.ruoyi.system.service.IZftMyManagerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 我的管理，我的课程记录、违规记录、意见反馈、版本信息Controller
 * 
 * @author ruoyi
 * @date 2025-06-06
 */
@RestController
@RequestMapping("app/system/manager")
@Api(tags = "app我的意见相关接口")
public class ZftMyAppManagerController extends BaseController
{
    @Autowired
    private IZftMyAppManagerService zftMyAppManagerService;


    /**
     * 修改我的管理，我的课程记录、违规记录、意见反馈、版本信息
     */
//    @PreAuthorize("@ss.hasPermi('system:manager:edit')")
    @Log(title = "我的管理，我的课程记录、违规记录、意见反馈、版本信息", businessType = BusinessType.UPDATE)
    @PutMapping("/feeback")
    @ApiOperation("提交我的反馈意见")
    public AjaxResult edit(@RequestBody ZftAppMyManagerDTO ZftAppMyManagerDTO)
    {
        return toAjax(zftMyAppManagerService.updateZftMyManager(ZftAppMyManagerDTO));
    }

}
